<?php

namespace Gds\VenteBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * LigneBonCommandeClient
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class LigneBonCommandeClient
{
    
    /**
     * @ORM\ManyToOne(targetEntity="Gds\ArticleBundle\Entity\Article", inversedBy="lignes_bon_commande")
     * @ORM\JoinColumn(nullable=false)
     */
    private $article;
   /**
     * @ORM\ManyToOne(targetEntity="Gds\VenteBundle\Entity\BonCommandeClient", inversedBy="lignes_bon_commande", cascade={"persist"})
     
     */
    private $bon_commande;
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var float
     *
     * @ORM\Column(name="quantite", type="decimal", scale=3)
     */
    private $quantite;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set quantite
     *
     * @param float $quantite
     * @return LigneBonCommandeClient
     */
    public function setQuantite($quantite)
    {
        $this->quantite = $quantite;

        return $this;
    }

    /**
     * Get quantite
     *
     * @return float 
     */
    public function getQuantite()
    {
        return $this->quantite;
    }

    /**
     * Set article
     *
     * @param \Gds\ArticleBundle\Entity\Article $article
     * @return LigneBonCommandeClient
     */
    public function setArticle(\Gds\ArticleBundle\Entity\Article $article)
    {
        $this->article = $article;

        return $this;
    }

    /**
     * Get article
     *
     * @return \Gds\ArticleBundle\Entity\Article 
     */
    public function getArticle()
    {
        return $this->article;
    }

    /**
     * Set bon_commande
     *
     * @param \Gds\VenteBundle\Entity\BonCommandeClient $bonCommande
     * @return LigneBonCommandeClient
     */
    public function setBonCommande(\Gds\VenteBundle\Entity\BonCommandeClient $bonCommande = null)
    {
        $this->bon_commande = $bonCommande;

        return $this;
    }

    /**
     * Get bon_commande
     *
     * @return \Gds\VenteBundle\Entity\BonCommandeClient 
     */
    public function getBonCommande()
    {
        return $this->bon_commande;
    }
}
